home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-12-11 | 1.0 KB | 51 lines | [TEXT/ToyS] |
-
- tell application "Sound Editor Doc"
- set mydoc to a reference to part id id
- end tell
-
- tell application "SoundEditor (MW)"
- tell mydoc
-
- -- copy the old recording quality and set to best
- copy recording quality to oQuality
- set recording quality to best
-
- -- stop if necessary
- copy state to cState
- if cState is not stopped then
- stop
- end if
-
- -- record for half the maximum possible time
- copy max recording time to mTime
- record
- copy current time to cTime
- repeat while cTime < mTime / 3
- copy current time to cTime
- end repeat
- stop
-
- -- play the sound, pause halfway,
- -- wait 3 seconds then continue
- copy sound length to cLength
- play
- copy current time to cTime
- repeat while cTime < cLength / 2
- copy current time to cTime
- end repeat
- pause
- copy 0 to counter
- repeat while counter < 10000
- copy counter + 1 to counter
- end repeat
- resume
-
- -- restore the old sound quality
- if sound quality is not oQuality then
- set recording quality to oQuality
- end if
-
- end tell
- end tell
-
-